package cn.itcast.com.inner;


import static com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.Object;

public class demo2匿名 {
    public static void main(String[] args) {
        MyInterface inter = new MyInterSon();
        new A();
        new MyInterface() {

            @Override
            public void show() {

            }
        };

    }
}

//已经存在的接口
interface MyInterface{
    void show();
}

class MyInterSon implements MyInterface{
    public void show(){
        System.out.println("MyInterfaceSon");


    }
}

class A{}